<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>修改联系人</title>
    <style>
    	header{text-align:center;}
    	.content{width:800px; height:600px; margin:10px auto;}
    	.content table{border:1px solid black; margin:10px auto; border-collapse:collapse;}
    	.content table td,.content table th{border:1px solid black; padding:4px;}
    </style>
  </head>
  
  <body>
    <header><h3>修改联系人</h3></header>
    <div class="content">
	    <form action="ModifyServlet" method="post">
	    	<table>
	    		<input type="hidden" name="id" value="${contacts.id }" />
	    		<tr>
	    			<td>姓名：</td>
	    			<td><input type="text" name="name" value="${contacts.name }"></td>
	    		</tr>
	    		<tr>
	    			<td>性别：</td>
	    			<<td>
	    				<input type="radio" name="gender" value="男" <c:if test="${contacts.gender=='男' }">checked="checked"</c:if> /> 男
	    				<input type="radio" name="gender" value="女" <c:if test="${contacts.gender=='女' }">checked="checked"</c:if> /> 女
	    			</td>
	    		</tr>
	    		<tr>
	    			<td>年龄：</td>
	    			<td><input type="text" name="age" value="${contacts.age }"/></td>
	    		</tr>
	    		<tr>
	    			<td>手机号：</td>
	    			<td><input type="text" name="telephone" value="${contacts.telephone }"/></td>
	    		</tr>
	    		<tr>
	    			<td>QQ：</td>
	    			<td><input type="text" name="QQ" value="${contacts.QQ }"/></td>
	    		</tr>
	    		<tr>
	    			<td>email</td>
	    			<td><input type="text" name="email" value="${contacts.email }"/></td>
	    		</tr>
	    		<tr>
	    			<td><button type="submit">提交</button></td>
	    			<td><a href="ShowListServlet"><button>返回主界面</button></a></td>
	    		</tr>
	    	</table>
	    </form>
    </div>
  </body>
</html>
